<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>

<title><s:text name="title_eventManager"></s:text></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<base target="_self" />
<script type="text/javascript">
function addPlan(num){
	 if(num==1){
		document.getElementById("addDiv").style.display='';
	}
	else if(num==2){
		document.getElementById("addDiv").style.display='none';
	}
	
}
</script>
<%@ include file="../common/header.jsp"%>
<link href="${appPath}/css/eventManager.css"rel="stylesheet" type="text/css" />
<link href="${appPath}/css/nav.css"rel="stylesheet" type="text/css" />

</head>
<s:fielderror></s:fielderror>
<body>


<%@ include file="../common/nav.jsp" %>

<s:hidden name="eventIdForModify" id="eventIdForModify" value="%{eventIdForModify}"/>
<s:hidden name="scheduleIdForModify" id="scheduleIdForModify" value="%{scheduleIdForModify}"/>
<s:hidden  id="languageFlag" value="%{getText('language_flag')}"/>
<s:hidden  id="okStr" value="%{getText('label_okStr')}"/>
<s:hidden  id="cancleStr" value="%{getText('label_cancleStr')}"/>
<script type="text/javascript" src="${appPath}/js/eventManager.js"></script>
<script type="text/javascript" src="${appPath}/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${appPath}/js/setTime.js"></script>
<div id="content1" class="content">
<p class="space2"></p>
<h1 class="font2" style="margin-left:50px"><s:text name="title_eventManager"></s:text>
&nbsp;&nbsp;&nbsp;&nbsp;</h1>
<div class="topbutton">
<input type="button" id="addEvent" value="<s:text name="label_addEvent"></s:text>" class="button1" onClick="addPlan(1)"/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" id="return" value="<s:text name="label_backButton"></s:text>" class="button1" />
</div>
<hr width="860px">
<p class="space1"></p>

<table style="background: white; width:860px;margin-left: auto; margin-right: auto;" cellspacing="0">
<thead>
<tr bgcolor="#bbbbbb">
<!-- <td height="30px" width="192px" align="center" class="font1"><s:text name="label_number"></s:text></td> -->
<td height="30px" width="192px" align="center" class="font1"><s:text name="label_evnetName"></s:text></td>
<td width="192px" align="center" class="font1"> <s:text name="label_date"></s:text></td>
<td width="192px" align="center" class="font1" > <s:text name="label_startTime"></s:text> </td>
<td width="192px" align="center" class="font1"><s:text name="label_endTime"></s:text></td>
<td width="192px" align="center" class="font1"><s:text name="label_eventArea"></s:text></td>
<td width="192px" align="center" class="font1"><s:text name="label_operation"></s:text></td>
<!-- <td width="192px" align="center"><s:label value="%{getText('language_flag')}"/></td>
<td width="192px" align="center"><s:label value="%{getText('label_okStr')}"/></td>
<td width="192px" align="center"><s:label value="%{getText('label_cancleStr')}"/></td> -->

</tr>
</thead>
<tbody>
<s:iterator value="eventList" id="eventList" status="listStatus">
<s:if test="#listStatus.odd == true">
<tr bgcolor="#f1f1f1">
<!-- <td width="192px" height="30px" align="center">NO.<s:label value="%{event_id}"/></td> -->
<td height="30px" width="192px" align="center"><s:label value="%{title}"/></td>
<td width="192px" align="center"><s:label value="%{day}"/></td>
<td width="192px" align="center"><s:label value="%{start_time}"/></td>
<td width="192px" align="center"><s:label value="%{end_time}"/></td>
<td width="192px" align="center"><s:label value="%{place}"/></td>
<s:hidden id="viewFlag" name="viewFlag" value="%{viewFlag}"/>
<td width="292px" align="center"><a href="#" class="eventInfoEdit"><s:text name="label_modify"></s:text></a>&nbsp;&nbsp;<a href="#" class="eventInfoView"><s:text name="label_detail"></s:text></a>&nbsp;&nbsp;<a href="#" class="eventInfoDelete"><s:text name="label_delete"></s:text></a><s:hidden value="%{event_id}"/><s:hidden value="%{schedule_id}"/></td>
</tr>
</s:if>
<s:else>
<tr bgcolor="#cccccc">
<!-- <td width="192px" height="30px" align="center">NO.<s:label value="%{event_id}"/></td> -->
<td height="30px" width="192px" align="center"><s:label value="%{title}"/></td>
<td width="192px" align="center"><s:label value="%{day}"/></td>
<td width="192px" align="center"><s:label value="%{start_time}"/></td>
<td width="192px" align="center"><s:label value="%{end_time}"/></td>
<td width="192px" align="center"><s:label value="%{place}"/></td>
<td width="292px" align="center"><a href="#" class="eventInfoEdit"><s:text name="label_modify"></s:text></a>&nbsp;&nbsp;<a href="#" class="eventInfoView">详细</a>&nbsp;&nbsp;<a href="#" class="eventInfoDelete">删除</a><s:hidden value="%{event_id}"/><s:hidden value="%{schedule_id}"/></td>
</tr>


</s:else>
</s:iterator>
<tr>
<td colspan="7" height="30px">

</td>
</tr>
</tbody>
</table>
</div>

<div class="addDiv" id="addDiv"  style="display: none;">
<s:form action="" id="eventForm" enctype="multipart/form-data" method="post" >
<s:hidden id="orderId" name="orderId"/>
<table>
<tr>
<td  width="100px;" height="87px;" align="right"> <s:text name="label_date"></s:text></td>
<td colspan="3" align="left"><s:textfield id="day"  name="day" value="%{day}" onClick="WdatePicker()"/></td>
</tr>
<tr>
<td width="100px;" align="right"><s:text name="label_startTime"></s:text></td>
<td width="150px;" align="left"><s:textfield  id="startTime" name="start_time" value="%{start_time}" class="time" onclick="_SetTime(this)"/>
</td>
<td width="100px;" align="right"><s:text name="label_endTime"></s:text></td>
<td width="150px;" class="stxt" align="left"><s:textfield id="endTime" name="end_time" value="%{end_time}" class="time" onclick="_SetTime(this)"/>
</td>
</tr>
<tr>
<td width="100px;" height="60px;" align="right"><s:text name="label_evnetName"></s:text></td>
<td colspan="3" align="left"><s:textfield id="title" name="title" value="%{title}" maxlength="20"/></td>
</tr>
<tr>
<td width="100px;" height="60px;" align="right"><s:text name="label_eventArea"></s:text></td>
<td colspan="3" align="left"><s:textfield id="place" name="place" value="%{place}" maxlength="50"/></td>
</tr>
<tr>
<td width="100px;" height="60px;" align="right"><s:text name="label_evntDetails"></s:text></td>
<td colspan="3" align="left"><s:textarea id="memo"  name="memo" value="%{memo}" rows="3" cols="30" maxlength="500"></s:textarea></td>
</tr>
<tr>
<td colspan="4" align="center" height="100px">
<input type="button" id="comfirm" value="<s:text name="label_save"></s:text>" class="button2" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" id="cancel" value="<s:text name="label_cancle"></s:text>" class="button2" onClick="addPlan(2)"/>

</td>
</tr>
</table>
</s:form>
</div>

<p class="space1"></p>
</body>
</html>